package com.thon.service.user;

import java.util.List;

import com.thon.dao.util.Page;
import com.thon.entity.system.Users;
import com.thon.entity.user.User;

/**
 * @author THON
 * @mail thon.ju@meet-future.com
 * @date 2012-2-13 下午08:57:40
 * @description
 */
public interface UserService {

	public void addUser(User user);
	
	public void registUser(User user);

	public void updateUser(User user);

	void deleteUser(Integer id);

	public User getUser(Integer id);
	
	public User getUserByName(String name);

	public User getUserByName(String name, String status);
	
	public User getUser(String account, String status);

	public User getUserByEmail(String email);

	public String entryptPassword(String password, String salt);

	public List<User> listAllUsers();

	public void sendMail2User(User user);

	public void resetPassword(User user);

	public Page<User> findUserPage(String role, int pageNo, int pageSize);	

	public Page<User> listUserPage(String by, String condition, int pageNo,
			int pageSize);

	public User checkOldPassword(int id, String password);

	public void updatePassword(User user);
	
	void updateUserLoginInfo(int id);
	
	public Page<User> findUserByName(Page<User>page,String name);
	
	public Boolean nameUnique(Integer userId,String name);
}